package com.forest.core.widget.dialog

import android.view.View
import androidx.annotation.LayoutRes

/**
 *    author : duanguosen
 *    date   : 2019/12/3
 *    desc   :
 */
interface FDialogInterface {


    fun dismiss()

    /**
     * 构造dialog view
     */
    interface OnBuilderViewListener {
        /**
         *@param dialog    FDialogInterface
         * param view    dialog view
         * param layoutRes dialog的布局 默认是0
         */
        fun onBuilderView(dialog: FDialogInterface, view: View, @LayoutRes layoutRes: Int = 0)
    }

    interface OnDismissListener {
        fun onDismiss(dialog: FDialogInterface)
    }
}